package com.huangtang.pc.controller;

import com.huangtang.pc.entity.Order;
import com.huangtang.pc.feign.OrderClient;
import lombok.AllArgsConstructor;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author sunjf
 * @since 2024-01-12
 */
@RestController
@AllArgsConstructor
public class UserController {

    private final OrderClient orderClient;

    @GetMapping("/test")
    public Object getTest(){
        Order order = orderClient.getById();

        return order;
    }
}
